package com.xike.entiy;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.io.Serializable;
import java.util.Date;

/**
 * Auther: wuson  <br/>
 * Date: 2021/4/12:10:10  <br/>
 * Description:
 */
@Data
@Builder
public class MemberEntity implements Serializable {
    private int id;
    //账号
    private String username;
    //密码
    private String password;
    //昵称
    private String nickName;
    //邮箱
    private String eml;
    //头像
    private String salt;
    //性别
    private String sex;
    //年龄
    private int age;
    //创建时间
    private Date gmtCreate;
    //信用等级
    private int risk;
    //身份证姓名
    private String idcardName;
    //身份证号
    private String idcard;
    //真实姓名
    private String realName;
    //余额
    private double balance;
    //可接受风险
    private int acceptRisk;
    //积分
    private int integral;
    //状态 1正常  2删除
    private int status;
    //令牌
    private String token;
    //支付密码
    private String payPassword;
    //验证码
    private String verificationCode;
    //优惠券id
    private String couponIds;
    //签到天数
    private int signin;
    //上次登录时间
    private String loginTime;
    //上次签到时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date signinTime;

    @Tolerate
    public MemberEntity () {
    }

}
